<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>account test</title>
</head>
<body>
	<script src="/dist/account-sdk.js"></script>
	<script>
		var account = new IDOCAccount({
			appid: 1,
			appkey: 'd381dea35729267eb3d27647ddaf340d',
			host: 'http://account.idoc.dev'
		})
		// login
		// account.user.login({
		// 	user_name: 'admin',
		// 	user_pass: 'admin'
		// }).then(res => {
		// 	console.log("login success", res)
		// 	return res
		// }).then(user => {
		// 	return account.sso.sync(user)
		// }).then(res => {
		// 	console.log(res)
		// })
		account.syncLogin({
			user_name: 'admin',
			user_pass: 'admin'
		})
	</script>
</body>
</html>